package work.ib.apt.perf.complex;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

import work.ib.apt.perf.TestMain;

public class GetComplexProducts extends TestMain {

	//	private static final String url = "http://localhost:8000/services/complexes/v2/getComplexProducts";
	private static final String url = "http://dev-aptratings-services1.internetbrands.com:8080/services/complexes/v2/getComplexProducts";

	private static final Integer parallelThreads = 6;

	private static long[] complexIdDev = new long[] {
		 9199332346275147327l,
		 414778151553226l,
		 410247333321227l,
		 9199332346275144038l,
		 520572000685743l,
		 817451350576112l,
		 281208277977477l,
		 570343565018508l,
		 732246462708873l,
		 510887818594545l,
		 215343450018976l,
		 805942073093534l,
		 817540404076021l,
		 617364527702136l,
		 805263040491354l,
		 703968444022030l,
		 9199332346275146679l,
		 502227983740601l,
		 281440716277066l,
		 9199332346275151608l,
		 903561610175703l,
		 866742034947150l,
		 610775010519607l,
		 503848627997007l,
		 703413540022202l,
		 909245033892530l,
		 440842912144129l,
		 4042969330300212087l,
		 719598655080918l,
		 951369107892507l,
		 909628898191709l,
		 9199332346275148378l,
		 301948063620878l,
		 877266572332817l,
		 928714103086004l,
		 704548115428269l,
		 915692270179605l,
		 410821788821204l,
		 813875660933603l,
		 215682200019040l,
		 714842062992647l,
		 864292184029615l,
		 704588300028273l,
		 706320090931904l,
		 703751699022304l,
		 254755726776706l,
		 803732088029212l,
		 773477770060657l,
		 301423313120746l,
		 202244772420008l,
		 9199332346275150446l,
		 310568940090045l,
		 817261166376120l,
		 20743l,
		 410488903321206l,
		 513523766645056l,
		 9199332346275152162l,
		 2888829451334873886l,
		 9199332346275143017l,
		 213406800090015l,
		 9199332346275151583l,
		 9199332346275143004l,
		 9199332346275151257l,
		 715386776754016l,
		 770888590030041l,
		 21496565657520401l,
		 770434614430080l,
		 901365831838118l,
		 9199332346275143280l,
		 866510308498444l,
		 513234065945065l,
		 877262845630326l,
		 703690216122191l,
		 602843149985308l,
		 713665472077054l,
		 805306996693065l,
		 623492903585087l,
		 7574840195237031l,
		 314434698863043l,
		 281586736077069l,
		 9199332346275148517l,
		 512288340078749l,
		 205822017035216l,
		 407805022232746l,
		 617288833002121l,
		 703813818322312l,
		 410730192221045l,
		 925846888294566l,
		 813925841133626l,
		 9199332346275145178l,
		 800901862519382l,
		 813249486033634l,
		 623931387885302l,
		 949551680092604l,
		 757988028823608l,
		 256837156635806l,
		 757595537323606l,
		 9199332346275153539l,
		 901365243038118l,
		 904642728832256l,

	};

	private static String[] cityStateLocal = new String[] {
		"GRAMERCY,LA",
	};

	public static void main(String[] args) {
		try {
			new GetComplexProducts().runTest();
		} catch (Exception e) {
			e.printStackTrace(System.out);
		}
	}

	@Override
	public Map<String, Object> getParameters() {
		long[] dataArray = complexIdDev;
		long complexId = dataArray[new Random().nextInt(dataArray.length)];
		Map<String,Object> params = new HashMap<String,Object>();

		params.put("complexId", complexId);
		params.put("format", "json");

		return params;
	}

	@Override
	public int getParallelThreads() {
		return parallelThreads;
	}

	@Override
	public String getURL() {
		return url;
	}
}
